home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / hsc / source / ugly / udebug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  1.8 KB  |  67 lines

  1. /*
  2.  * This source code is part of hsc, a html-preprocessor,
  3.  * Copyright (C) 1993-1997  Thomas Aglassinger
  4.  *
  5.  * This program is free software; you can redistribute it and/or modify
  6.  * it under the terms of the GNU General Public License as published by
  7.  * the Free Software Foundation; either version 2 of the License, or
  8.  * (at your option) any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to the Free Software
  17.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  */
  20. /*
  21.  * ugly/udebug.h
  22.  *
  23.  * basic debugging macro and flags to control debugging output
  24.  * of ugly.lib
  25.  */
  26. #ifndef UGLY_DEBUG_H
  27. #define UGLY_DEBUG_H
  28.  
  29. #ifdef DEBUG_UGLY
  30.  
  31. /* NOTE: for some defines, a value of "2" enables
  32.  * extended debuggin information:
  33.  *
  34.  * DEBUG_UGLY_EXPSTR=2 display every call to set_estr()
  35.  * DEBUG_UGLY_MEMORY=2 display every call to umalloc/ufree
  36.  */
  37. #define DEBUG_UGLY_ARG    0
  38. #define DEBUG_UGLY_EXPSTR 1
  39. #define DEBUG_UGLY_INFILE 0
  40. #define DEBUG_UGLY_MEMORY 1
  41. #define DEBUG_UGLY_TIME   1
  42.  
  43. #else
  44.  
  45. #define DEBUG_UGLY_ARG    0
  46. #define DEBUG_UGLY_EXPSTR 0
  47. #define DEBUG_UGLY_INFILE 0
  48. #define DEBUG_UGLY_MEMORY 0
  49. #define DEBUG_UGLY_TIME   0
  50.  
  51. #endif /* DEBUG_UGLY */
  52.  
  53. /* show panic messages?
  54.  *
  55.  * NOTE: display_panic_message() is declared in ugly/umemory.c */
  56.  
  57. /* this define is named after the marvelous movie directed by
  58.  * Franz Nowotny starring Hanno Pöschl and Paulus Manker */
  59. #ifndef EXIT_NUR_KEINE_PANIK
  60. #define panic(msg) display_panic_message((msg), __FILE__, __LINE__)
  61. #else
  62. #define panic(msg) /* nufin */
  63. #endif
  64.  
  65. #endif /* UGLY_DEBUG_H */
  66.  
  67.